﻿#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2008 ZHENG Zhong <heavyzheng nospam-at gmail D0T com>
# - http://www.zhengzhong.net/
# - http://blog.zhengzhong.net/
#
# URL configuration for my homepage webapp.
#
# Created on 2008-12-19.
# $Id: urls.py 310 2008-12-30 13:28:29Z heavyzheng $
#

from django.conf.urls.defaults import patterns

urlpatterns = patterns( "zzheng.webapp.views",

    ( r"^$", "home" ),
    ( r"^java/$", "about_java" ),
    
    ( r"^file/$", "file" ),
    ( r"^file/(?P<id>.+)/$", "file" ),
    
    ( r"^zipdoc/(?P<path>.+)/$", "get_zipdoc" ),
    ( r"^zipdoc/(?P<path>.+)$", "get_zipdoc" ),
    
    ( r"^environ/$", "webapp_environ" ),
    
    # 404 not-found to catch all (this should always be the last URL pattern).
    ( r"^.*$", "not_found" ),

)



